package com.dzl.goods.service;

import com.dzl.base.service.BaseService;
import com.dzl.goods.pojo.WelfareGoodsLabel;
import com.dzl.goods.pojo.WelfareGoodsLabelRel;

import java.util.List;

/**
 * (WelfareGoodsAndLabel)表服务接口
 * @author wangjian
 * @date 2021-08-02 10:12:07
 */
public interface WelfareGoodsLabelRelService extends BaseService<WelfareGoodsLabelRel> {

    /**
     * 保存商品和标签的关联关系
     * @date 2021/8/2 0002 14:58
     * @author wangjian
     * @param labelId 标签ID
     * @param goodsIds 商品ID ","隔开
     * @return java.lang.Integer
     */
    Integer updateGoodsLabelRelList(Integer labelId,String goodsIds);

    /**
     * 删除标签关联集采商品
     * @param goodsId 选中的商品id
     * @param labelId 标签id
     * @author liuguanjun
     * @date 2022/01/19 09:43
     */
    Integer deleteGoodsLabelRel(Integer labelId,String goodsId);

    /**
     * 获取商品标签
     * @author ChenLong
     * @date 2021-08-03 15:55:07
     * @param goodsId 商品Id
     * @param labelNum 查询商品标签数量
     * @return java.util.List
     **/
    List<WelfareGoodsLabel> selectGoodsLabelListByGoodsId(Integer goodsId,Integer labelNum);

}